export default [
	// 首页
	{
		path: '/home',
		name:'Home',
		component: () => import('@/pages/home/index'),
		children:[]
	},
	// 测试购物车
	{
		path: '/cart',
		name:'Cart',
		component: () => import('@/pages/cart/index'),
		children:[]
	},
	//访问根路径，跳转到主页
	{
		path: '/',
		redirect: '/home'
	},
	// 访问的路径都没有的话,回到首页
	{   path: '*',
		redirect: '/home'
	}
]